import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-11
 * Time: 12:58
 */
public class Test {
    public static void main(String[] args) {
        int[][] arr={{1,2,4},{1,3}};
       /* for (:
             ) {
            */
        System.out.println(Arrays.deepToString(arr));
        System.out.println(Arrays.toString(arr[0]));
        System.out.println(Arrays.toString(arr[1]));
        System.out.println(arr);
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(Arrays.toString(arr));
        //打印
        for (int[] x:
             arr) {
            System.out.println();
            for (int y:
                 x) {
                System.out.print(y+" ");
            }
        }
        System.out.println();
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
        System.out.println();
        System.out.println(Arrays.deepToString(arr));
        int[][] arr1=new int[2][];
        System.out.println(arr1[1]);
        arr1[0]=new int[]{1};
        arr1[1]=new int[]{42415,4};
        System.out.println(Arrays.deepToString(arr1));
    }
    }

